home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 December / 2004-12 CHIP.iso / Narzedzia systemowe / Inno Setup 5.0.4 Beta / isetup-5.0.4-beta.exe / {app} / Examples / ISPPExample1.iss < prev    next >
Text File  |  2004-06-29  |  1KB  |  46 lines

  1. ; -- ISPPExample1.iss --
  2. ;
  3. ; This script shows various basic things you can achieve using Inno Setup Preprocessor (ISPP) by Alex Yackimoff.
  4. ; To enable commented #define's, either remove the ';' or use ISPPCC with the /D switch.
  5. ;
  6. ; To download and install ISPP, get the Inno Setup QuickStart Pack from http://www.jrsoftware.org/isdl.php#qsp
  7.  
  8. #pragma option -v+
  9. #pragma verboselevel 9
  10.  
  11. #define Debug
  12.  
  13. ;#define AppEnterprise
  14.  
  15. #ifdef AppEnterprise
  16.   #define AppName "My Program Enterprise Edition"
  17. #else
  18.   #define AppName "My Program"
  19. #endif
  20.  
  21. #define AppVersion GetFileVersion(AddBackslash(SourcePath) + "MyProg.exe")
  22.  
  23. [Setup]
  24. AppName={#AppName}
  25. AppVerName={#AppName} version {#AppVersion}
  26. DefaultDirName={pf}\{#AppName}
  27. DefaultGroupName={#AppName}
  28. UninstallDisplayIcon={app}\MyProg.exe
  29. LicenseFile={#file AddBackslash(SourcePath) + "ISPPExample1License.txt"}
  30. VersionInfoVersion={#AppVersion}
  31.  
  32. [Files]
  33. Source: "MyProg.exe"; DestDir: "{app}"
  34. #ifdef AppEnterprise
  35. Source: "MyProg.hlp"; DestDir: "{app}"
  36. #endif
  37. Source: "Readme.txt"; DestDir: "{app}"; \
  38.   Flags: isreadme
  39.  
  40. [Icons]
  41. Name: "{group}\{#AppName}"; Filename: "{app}\MyProg.exe"
  42.  
  43. #ifdef Debug
  44.   #expr SaveToFile(AddBackslash(SourcePath) + "Preprocessed.iss")
  45. #endif
  46.